<%@taglib  uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@taglib  uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<TABLE class="mainService">
    <TR>
        <TD colSpan=1>
            <TABLE class="table0" cellSpacing=0 cellPadding=0 align=center>
                <TR>
                    <TD class="td1"></TD>
                    <TD class="top"></TD>
                    <TD class="topright"></TD>
                </TR>
                <TR>
                    <TD class="middleleft" rowSpan=3></TD>
                    <TD bgcolor="#hhhhhh">

                    </TD>
                    <TD class="middleright" rowSpan=3></TD>
                </TR>
                <TR>
                    <TD class="middlecenter"></TD>
                </TR>
                <TR>
                    <TD  class="main">
                        <pg:pager url="tour.do" maxIndexPages="3" maxPageItems="6">
                            <pg:param name="action" value="listTour"/>
                            <table width="580" border="0" >
                                <logic:present name="listSearch">
                                    <logic:empty name="listSearch">
                                        not Data

                                    </logic:empty>
                                    <logic:iterate id="list" name="listSearch">
                                        <pg:item>
                                            <tr>
                                                <td width="148" rowspan="6" valign="top">
                                                   <a href="tour.do?action=detail&id=<bean:write name="list" property="tourId"/>"> <img src="<bean:write name="list" property="tourDetailDTO.imagesUrl"/>" width="150" height="100" align="top">      </a>                                  </td>

                                                <td width="10" rowspan="6" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
                                                <td width="126" height="21" valign="top">TourName</td>
                                                <td width="976" valign="top"><a href="#">
                                                        <font size="2" color="#0033FF"><b><a href="tour.do?action=detail&id=<bean:write name="list" property="tourId"/>"> <bean:write name="list" property="tourName"/>
                                                                </a></b></font>
                                                    </a>                                        </td>
                                                <td width="18">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td height="21" valign="top">Depart From:</td>
                                                <td valign="top">
                                                <bean:write name="list" property="departure"/>                                        </td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td height="21" valign="top">Stop Off:</td>
                                                <td valign="top">
                                                <bean:write name="list" property="destination"/>                                        </td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td height="21" valign="top">Duration:</td>
                                                <td valign="top">
                                                    <bean:write name="list" property="duration"/>
                                                    day ${list.duration-1} night                                        </td>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td height="21" valign="top">Price: </td>
                                                <td valign="top">
                                                    <font color="red" size="2"> <b> <bean:write name="list" property="min"/> &nbsp;$
                                                    -
                                                <bean:write name="list" property="max"/> &nbsp;$</b></font>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   <a href="tour.do?action=booking&id=<bean:write name="list" property="tourId"/>&idp=<bean:write name="list" property="tourPriceDTO.tourPriceId"/>">booking now</a>  </td>
                                                <td>&nbsp;</td>
                                                <td></td>
                                            </tr>

                                            <tr>

                                                <td height="21" colspan="5" valign="top">
                                                <bean:write name="list" property="introduction"/>
                                                </td>
                                            </tr>
                                            <tr >
                                                <td height="21" colspan="4" valign="top"><img src="img/line.png" width="410" height="1" align="top"  ></td>
                                            </tr>

                                            <tr><td height="2">
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                            </tr>
                                        </pg:item>
                                    </logic:iterate>
                                </logic:present>

                                <tr>
                                    <td height="21" colspan="4" align="right"><input type="submit" value="back" onclick="history.back()"></td>
                                    <td>&nbsp;</td>
                                </tr>

                            </table>
                            <table>
                                <tr>
                                    <td>
                                        <pg:index>
                                            <pg:prev><a class="pre pointer disable" href="${pageUrl}">[&lt;&lt;Prev]</a></pg:prev>
                                            <span class="pages">
                                                <pg:pages><a class="pointer searchByPage unlink" href="${pageUrl}">${pageNumber}</a> | </pg:pages>
                                            </span>
                                            <pg:next><a  class="nxt pointer" href="${pageUrl}">[Next&gt;&gt;]</a></pg:next>
                                        </pg:index>
                                    </td>
                                </tr>
                            </table>
                        </pg:pager>

                    </TD>
                </TR>

                <TR>
                    <TD class="bottom"><IMG border=0 alt="" src="img/pod_main_bottom_left.gif"></TD>
                    <TD class="bottomright"><P align=right>&nbsp;</P></TD>
                    <TD class="bottomleft"><IMG border=0 alt="" src="img/pod_main_bottom_right.gif"></TD>
                </TR>
            </TABLE>
        </TD>
    </TR>
</TABLE>